Skip to content

Conversation

@arthurdenner
Copy link
Owner

What kind of change does this PR introduce?
Refactor. Related to this comment.

What is the current behavior?
When the input is focused, the content is selected. When the user presses Tab, we focus the clear button.

What is the new behavior?
Focus the clear button is a bit unnecessary since the content is selected every time the input is focused, allowing the user to clear it by pressing Backspace or Delete.

Checklist:

  • Documentation
  • Tests
  • Ready to be merged

@vercel
Copy link

vercel bot commented Feb 10, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/arthurdenner/react-semantic-ui-datepickers/kv06akbl0
✅ Preview: https://react-semantic-git-refactor-remove-focus-clear-9d4ff1.arthurdenner.now.sh

@codecov
Copy link

codecov bot commented Feb 10, 2021

Codecov Report

Merging #524 (ed2a3b8) into beta (58d0c80) will increase coverage by 0.34%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             beta     #524      +/-   ##
==========================================
+ Coverage   95.02%   95.37%   +0.34%     
==========================================
  Files          16       16              
  Lines         523      519       -4     
  Branches      100       99       -1     
==========================================
- Hits          497      495       -2     
+ Misses         26       24       -2     
Impacted Files Coverage Δ
src/components/icon.tsx 100.00% <ø> (+10.00%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 58d0c80...ed2a3b8. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants